#ifndef COMMON_H
#define COMMON_H

double random1_range(){
	return (upper_bound-lower_bound)*random1()+lower_bound;
}

double random2_range(){
	return (upper_bound-lower_bound)*random2()+lower_bound;
}

double random3_range(){
	return (upper_bound-lower_bound)*random3()+lower_bound;
}

double euclid_dist(double* x,double* y){
	int i;
	double r=0.0;
	double t;
	for(i=0;i<dimension;i++){
		t=(x[i]-y[i]);
		r+=(t*t);
	}
	r=sqrt(r);
	return r;
} 

#endif
